Handlebars.registerHelper('oper', function(operRight, options) {
    var separator = ',';
    var pageOpers = this._pageOpers;
    
    try{
        if(!pageOpers && document) {
            var pageOpersDom = document.getElementById('_rolePageOpers')
            if(pageOpersDom) pageOpers = pageOpersDom.innerText;
        }
    }catch(e){
    }
    
    if(pageOpers) {
        if(pageOpers.indexOf(separator + operRight + separator) >= 0) return options.fn(this);
        else return options.inverse(this);
    } else {
        return options.fn(this);
    }
});